{if is_array($arrEvent)}
<div class="panel panel-default">
<div class="panel-heading">最新活动</div>

<div class="panel-body event_list">
<ul>
{loop $arrEvent $key $item}

<li>

<div class="userimg"><a href="{tsUrl('user','duty',array('id'=>$item[user][userid]))}"><img class="img-rounded" src="{$item[user][face]}" width="32" height="32" alt="{$item['user']['username']}" title="{$item['user']['username']}" /></a></div>

<div class="event_title">
<div class="title">

{if $item['appkey'] != 'event' && $item['appkey']!=''}
<a target="_blank" style="color:#999999;font-size: 12px;margin-right: 5px;" class="titles-type" href="{SITE_URL}{php echo tsUrl($item['appkey'])}">[{$item['appname']}]</a>
<a title="{$item[title]}" href="{SITE_URL}{php echo tsUrl($item['appkey'],$item['appaction'],array('id'=>$item['appid']))}{$mylink}">{$item[title]}</a>
{else}
<a title="{$item[title]}" href="{tsUrl('event','show',array('id'=>$item[eventid]))}{$mylink}">{$item[title]}</a>
{/if}

{if $item['postby']==1}<a href="{tsUrl('home','phone')}"><img align="absmiddle" alt="通过Iphone手机端发布" title="通过Iphone手机端发布" src="{SITE_URL}public/images/ios.jpg" /></a>{/if}

</div>
<div class="event_info">
<span style="float:left;">
 <a href="{tsUrl('user','topic',array('id'=>$item[userid]))}">{$item[user][username]}</a>
 {php echo getTime($item[addtime],time())}

</span>

<span style="float:right;">

<a href="{tsUrl('event','type',array('id'=>$item['typeid']))}">{$item[type][typename]}</a>


{if $item[count_userwish]>0}<a class="rank" style="color:#FFFFFF;" href="{tsUrl('event','show',array('id'=>$item[eventid]))}">{$item[count_userwish]}</a>{/if}
</span>
</div>

</div>

<div class="clear"></div>

</li>

{/loop}
    <li style="float:right;border-bottom: 0px;"><a href="{tsUrl('event')}"><img src="{SITE_URL}public/images/right.png" style="height:15px"></img></a></li>
</ul>
</div>

</div>
{/if}